package com.o2o.service;

import com.o2o.dto.ProductCategoryExecution;
import com.o2o.entity.ProductCategory;
import com.o2o.exceptions.ProductCategoryOperationException;

import java.util.List;

/**
 * package_name:com.o2o.service
 * Author:徐亚远
 * Date:2019/12/10 17:15
 * 项目名:o2o
 * Desription:
 **/
public interface ProductCategoryService {
    /*
     *查询指定某个店铺下的所有商品类别信息
     * */
    List<ProductCategory> getProductCategory(Long shopId);

    /*
     *
     * @param Long shopId
     * @return
     * @throws RuntimeException
     * */
    ProductCategoryExecution batchAddProductCategory(List<ProductCategory> productCategoryList) throws
            ProductCategoryOperationException;

    /*
     *
     * 将此类别下的商品里的类别id置为空,再删除掉该商品类别
     * @param productCategoryId
     *  @param shopId
     * @return
     * @throws RuntimeException
     * */
    ProductCategoryExecution deleteProductCategory(Long productCategoryId, Long shopId) throws
            ProductCategoryOperationException;

}
